package com.eastfair.venuebooking.dto;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.eastfair.core.base.entity.Entity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.eastfair.venuebooking.enumeration.SpaceCategorySpaceTypeEnum;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 场地分类表
 * </p>
 *
 * @author linan
 * @since 2023-03-29
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "SpaceCategorySaveDTO", description = "场地分类表")
public class SpaceCategorySaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 是否启用：1是；0否
     */
    @ApiModelProperty(value = "是否启用：1是；0否")
    private Integer isEnabled;
    /**
     * 是否删除：1是；0否
     */
    @ApiModelProperty(value = "是否删除：1是；0否")
    private Integer isDeleted;
    /**
     * 项目id
     */
    @ApiModelProperty(value = "项目id")
    private Long projectId;
    /**
     * 子系统id
     */
    @ApiModelProperty(value = "子系统id")
    private Long subsystemId;
    /**
     * 租户id
     */
    @ApiModelProperty(value = "租户id")
    private Long tenantId;
    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @Size(max = 30, message = "分类名称长度不能超过30",groups ={Save.class})
    @NotEmpty(message = "分类名称不能为空",groups = {Save.class})
    private String categoryName;
    /**
     * 父级id
     */
    @ApiModelProperty(value = "父级id")
    private Long parentId;
    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;
    /**
     * 位置
     */
    @ApiModelProperty(value = "位置")
    @Size(max = 20, message = "位置长度不能超过20")
    private String location;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    @Size(max = 255, message = "备注长度不能超过255")
    private String remarks;
    /**
     * 场地类型 #{EXHIBITION_HALL:展厅;CONFERENCE_ROOM:会议室;ADVERTISING_SPACE:广告位}
     */
    @ApiModelProperty(value = "场地类型 #{EXHIBITION_HALL:展厅;CONFERENCE_ROOM:会议室;ADVERTISING_SPACE:广告位}")
    private SpaceCategorySpaceTypeEnum spaceType;

    /**
     * 保存校验标识
     */
    public interface Save{};

}
